package com.yegs.jltqc.U8Controller;

import com.yegs.jltqc.TO.OutComePageQuery;
import com.yegs.jltqc.U8Service.U8OutComeService;
import com.yegs.jltqc.config.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/u8OutCome")
public class U8OutComeController {
    @Autowired
    private U8OutComeService u8OutComeService;


    @PostMapping("/query")
    public Msg query(@RequestBody OutComePageQuery query){
        return Msg.success("page",u8OutComeService.query(query));
    }


    @GetMapping("/get")
    public Msg get(@RequestParam Long id){
        return Msg.success("data",u8OutComeService.get(id));
    }



}
